package com.future.hair.server.config.result;

//自定义数据添加异常类
public class DataAddException extends RuntimeException{
    private String code;
    private String message;
    public DataAddException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
